import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'
import FastClick from 'fastclick'
import '@/plugins/vant'
Vue.config.productionTip = false
//修改网页名字
router.beforeEach((to,from,next)=>{
	document.title = to.meta.title;
	next()
})
//解决click在移动端延迟300ms问题
if ('addEventListener' in document) {
	document.addEventListener('DOMContentLoaded', function() {
		FastClick.attach(document.body);
	}, false);
}
//设备适配
import flexible from 'amfe-flexible'
// import config from '@./postcss.congfig'
// 回到顶部
import vueToTop from 'vue-totop'
Vue.use(vueToTop)
//过滤器
import './filters'



new Vue({
  router,
  store,
  render: h => h(App)
}).$mount('#app')
